﻿using Abp.Notifications;
using AutoMapper;
using BXJG.Utils.Application.Share.Files;
using BXJG.Utils.Application.Share.Notification;
using BXJG.Utils.Files;
using BXJG.Utils.GeneralTree;
using BXJG.Utils.Share.Files;
using System.Text.Json;

namespace BXJG.Utils.Application.AutoMapper
{
    public class AutoMapperProfile : Profile
    {
        public AutoMapperProfile()
        {
            CreateMap<NotificationDefinition, NotifyDefineDto>().ForMember(d => d.EntityType, d => d.MapFrom(c => c.EntityType.FullName));

            CreateMap<temp, MessageDto>();

            //#region 文件
            //CreateMap<FileResult, FileDto>();
            //#endregion

            #region 附件Attachment
            //CreateMap<AttachmentEntity, AttachmentDto>().MapExtensionData();
            //CreateMap<AttachmentEntity, AttachmentDto>();//扩展属性已在BXJG.Utils模块中统一配置了映射

            //CreateMap(typeof(AttachmentEntity), typeof(AttachmentDto)).ForMember("", e => e.ConvertUsing);
            //CreateMap<AttachmentEditDto, AttachmentEntity>().ForMember(c => c.ExtensionData, opt => opt.Ignore.());
            #endregion

        
        }
    }
}
